package com.goktech.service;

import com.goktech.entity.Book;
import com.goktech.entity.User;
import com.goktech.entity.collect;

import java.util.List;
import java.util.Map;

public interface CollectService {
    public int insertCollect(collect c);

    public collect findByCollectOne(collect c);

    public List<Map<String, Object>> selectAll(User u,int begin,int end);

    public List<Map<String, Object>> findByLikeBookName(User u, Book b);

    public List<Map<String,Object>> findByLikeAuthor(User u,Book b);

    public int deleteCollect(collect c);

    public int deleteCollect1(User user);
}
